import request from "../utils/request";
// 商品分类
// es6当中的形参默认值
export const goods_cate_req = (params={})=>request({method:'get',url:'categories',params})
// 添加分类
export const add_cate_goods_req = (data)=>request({url:'categories',method:'post',data})

// 商品列表
export const goods_list_req = (params)=>request({method:'get',url:'goods',params})

// 添加商品
export const add_goods_info_req = (data)=>request({method:'post',url:'goods',data})
